#pragma once


#include "Options.h"
#include "maya/MSelectionList.h"
#include <vector>
#include <maya/MItMeshVertex.h>
#include <maya/MDagPath.h>
#include <maya/MFnDagNode.h>
#include <maya/MIntArray.h>
#include "UvStorage.h"

using namespace std;
class UvBackup
{

	
public:
	UvBackup(MSelectionList currSel, Options* opts);
	~UvBackup(void);

	void applyBackup();

private:
	vector<MItMeshVertex*> allVerts;
	vector<UvStorage*> objectUvs;

	void extractVerts();
	MSelectionList currSel;
	void recordUVsForObject(MItMeshVertex* vertsForOneMesh);
};

